<script lang="ts" setup name="TestD">
import { useCounterStore  } from "@/stores/counter.js";
const counterStore = useCounterStore();
const increment = () => {
  counterStore.increment();
};
</script>

<template>
  <div class="testd">
    <p>Testd组件</p>
    <div>{{ 'count: ' +  counterStore.count }}</div>
    <div>{{ 'doubleCount: ' +  counterStore.doubleCount }}</div>
    <button @click="increment">更改count</button>
  </div>
  
</template>
<style scoped>
.testd {
  border: 1px solid #dedede;
  padding: 10px;
  line-height: 24px;
}
</style>
